<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <!-- 缓存样式清除参考： https://blog.51cto.com/u_15320818/3253578 -->
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
    <link rel="stylesheet" th:href="@{/css/all-icon.css}"/>
    <link rel="stylesheet" th:href="@{/css/util/common.css}"/>
    <!--公共文件-->
    <title></title>

</head>
<style>
    body{
        background: #f2f2f2;
    }
</style>
<body>

</body>
<script type="text/javascript" th:inline="javascript">
    // 获取项目名称（如：/project-name/）
    /*<![CDATA[*/
    var ctxPath = /*[[@{/}]]*/ '';
    /*]]>*/
    var loginId = [[${session.loginUser.id}]];
    var loginRoleType = [[${session.loginUser.roleType}]];
    var commonRid = [[${session.loginUser.rid}]];
    var lastOid = [[${session.loginUser.lastOid}]];
    var oid = [[${session.loginUser.oid}]];
    var theme = [[${session.theme}]];
    var moduleTheme = [[${session.moduleTheme}]];
</script>
<script type="text/javascript" th:src="@{/js/util/jquery-2.1.1.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/util/common.js}"></script>
<script type="text/javascript" th:src="@{/js/util/jquery.cookie.js}"></script>
<script>

    /**
     * ---------------------------------------------------------------------------------------------
     * 添加like
     * @param src
     */
    function initThemeLike(src) {
        var link = document.createElement("link");
        link.rel = "stylesheet";
        link.type = "text/css";
        link.href = src;
        document.getElementsByTagName("head")[0].appendChild(link);
    }
    // 初始化主题
    initThemeLike(ctxPath+"css/theme/"+theme+".css");
    // 初始化组件
    initThemeLike(ctxPath+"css/theme/module/"+moduleTheme+".css");

</script>

</html>